/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.restlet.model;

import org.restlet.data.Protocol;

/** 
 * @title ServerModel.java  
 * @package com.hyts.trestlet.model  
 * @description TODO  
 * @see TODO
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月13日 
 * @version V1.0 
 */
public class ServerModel {
	
	
	/**  
	 * <p>ip地址</p> 
	 * @fieldName address
	 * @fieldType String
	 */ 
	private String ip = "127.0.0.1";
	
	/**  
	 * <p>port端口</p> 
	 * @fieldName port
	 * @fieldType Integer
	 */ 
	private Integer port = 8080;
	
	/**  
	 * <p>protocol:协议</p> 
	 * @fieldName protocol
	 * @fieldType Protocol
	 */ 
	private Protocol protocol = Protocol.HTTP;

	/**  
	 * @name ip's getter method
	 * @param none
	 * @return ip
	 */
	public String getIp() {
		return ip;
	}

	/**  
	 * @name ip's setter method
	 * @param ip
	 * @return void
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	/**  
	 * @name port's getter method
	 * @param none
	 * @return port
	 */
	public Integer getPort() {
		return port;
	}

	/**  
	 * @name port's setter method
	 * @param port
	 * @return void
	 */
	public void setPort(Integer port) {
		this.port = port;
	}

	/**  
	 * @name protocol's getter method
	 * @param none
	 * @return protocol
	 */
	public Protocol getProtocol() {
		return protocol;
	}

	/**  
	 * @name protocol's setter method
	 * @param protocol
	 * @return void
	 */
	public void setProtocol(Protocol protocol) {
		this.protocol = protocol;
	}

	/**  
	 * @constructor：ServerModel  
	 * @param ip
	 * @param port  
	 */ 
	public ServerModel(String ip, Integer port) {
		super();
		this.ip = ip;
		this.port = port;
	}

	/**  
	 * @constructor：ServerModel  
	 * @param ip
	 * @param protocol  
	 */ 
	public ServerModel(String ip, Protocol protocol) {
		super();
		this.ip = ip;
		this.protocol = protocol;
	}

	/**  
	 * @constructor：ServerModel  
	 * @param ip  
	 */ 
	public ServerModel(String ip) {
		super();
		this.ip = ip;
	}

	/**  
	 * @constructor：ServerModel  
	 * @param port  
	 */ 
	
	
	public ServerModel(Integer port) {
		super();
		this.port = port;
	}

	/**  
	 * @constructor：ServerModel  
	 * @param port
	 * @param protocol  
	 */ 
	
	
	public ServerModel(Integer port, Protocol protocol) {
		super();
		this.port = port;
		this.protocol = protocol;
	}

	/**  
	 * @constructor：ServerModel    
	 */ 
	
	
	public ServerModel() {
		super();
	}
	
	
	
}
